package com.wnhoo.smartfishtank.util;

/**
 * Created by ThinkPadE431 on 2015/5/27.
 */
public class SceneColor {

    // 超信这个版本只有 白、蓝 两种光，绿色就是原来的白色，所以这里改了下
    public static byte[] white(){

        return base(0,255,0);//alpha,r,g,b
    }

    public static byte[] red(){

        return base(255,0,0);//alpha,r,g,b,0000ffff
    }

    public static byte[] green(){

        return base(255,255,255);
    }


    public static byte[] blue(){

        return base(0,0,255);//alpha,r,g,b
    }
    public static byte[] yellow(){

        return base(255,255,0);//alpha,r,g,b
    }
    public static byte[] purple(){

        return base(255,0,255);//alpha,r,g,b
    }
    public static byte[] orange(){

        return base(255,69, 0);//alpha,r,g,b
    }




    public static byte[] close(){

        return base(0,0,0);//r,g,b,alpha
    }

    public static byte[] love(){

        return base(239,34,255);//r,g,b,alpha
    }
    public static byte[] sleep(){

        //fffcf139

//        r_int %= 255;
//        g_int %= 255;
//        b_int %= 255;
//        alpha_int %= 255;
//        return base(r_int,g_int,b_int,alpha_int);
//        return base(-1,-4,-16,52);//暖色

        return base(-1,39,1);//暖色[-1, -1, 39, 1]


//        int r_int =47;
//        int g_int = 21;
//        int b_int = 5;
//        int alpha_int = 73;
//
//        r_int %= 255;
//        g_int %= 255;
//        b_int %= 255;
//        alpha_int %= 255;
//        return base(r_int,g_int,b_int,alpha_int);//暖色#492F1505
    }

    public static byte[] music(){

//        return base(-1,1,21,-1);//蓝色
        return base(-1,3,2);//红色ffff0302
//        return base(-1,-94,-1,1);//黄色ffa2ff01
    }

    public static byte[] base(int r_int,int g_int,int b_int){


        byte[] color_rgb = new byte[4];

        color_rgb[0] = (byte)r_int;
        color_rgb[1] = (byte)g_int;
        color_rgb[2] = (byte)b_int;
        return color_rgb;
    }



}
